Optimal. Leaf size=98 \[ -\frac {c (b c-a d)^2 (c+d x)^{17}}{17 d^4}+\frac {(b c-a d) (3 b c-a d) (c+d x)^{18}}{18 d^4}-\frac {b (3 b c-2 a d) (c+d x)^{19}}{19 d^4}+\frac {b^2 (c+d x)^{20}}{20 d^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {78}
\begin {gather*} -\frac {b (c+d x)^{19} (3 b c-2 a d)}{19 d^4}+\frac {(c+d x)^{18} (b c-a d) (3 b c-a d)}{18 d^4}-\frac {c (c+d x)^{17} (b c-a d)^2}{17 d^4}+\frac {b^2 (c+d x)^{20}}{20 d^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int x (a+b x)^2 (c+d x)^{16} \, dx &=\int \left (-\frac {c (b c-a d)^2 (c+d x)^{16}}{d^3}+\frac {(b c-a d) (3 b c-a d) (c+d x)^{17}}{d^3}-\frac {b (3 b c-2 a d) (c+d x)^{18}}{d^3}+\frac {b^2 (c+d x)^{19}}{d^3}\right ) \, dx\\ &=-\frac {c (b c-a d)^2 (c+d x)^{17}}{17 d^4}+\frac {(b c-a d) (3 b c-a d) (c+d x)^{18}}{18 d^4}-\frac {b (3 b c-2 a d) (c+d x)^{19}}{19 d^4}+\frac {b^2 (c+d x)^{20}}{20 d^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(583\) vs. \(2(98)=196\).
time = 0.06, size = 583, normalized size = 5.95 \begin {gather*} \frac {1}{2} a^2 c^{16} x^2+\frac {2}{3} a c^{15} (b c+8 a d) x^3+\frac {1}{4} c^{14} \left (b^2 c^2+32 a b c d+120 a^2 d^2\right ) x^4+\frac {16}{5} c^{13} d \left (b^2 c^2+15 a b c d+35 a^2 d^2\right ) x^5+\frac {10}{3} c^{12} d^2 \left (6 b^2 c^2+56 a b c d+91 a^2 d^2\right ) x^6+8 c^{11} d^3 \left (10 b^2 c^2+65 a b c d+78 a^2 d^2\right ) x^7+\frac {91}{2} c^{10} d^4 \left (5 b^2 c^2+24 a b c d+22 a^2 d^2\right ) x^8+\frac {208}{9} c^9 d^5 \left (21 b^2 c^2+77 a b c d+55 a^2 d^2\right ) x^9+\frac {143}{5} c^8 d^6 \left (28 b^2 c^2+80 a b c d+45 a^2 d^2\right ) x^{10}+260 c^7 d^7 \left (4 b^2 c^2+9 a b c d+4 a^2 d^2\right ) x^{11}+\frac {143}{6} c^6 d^8 \left (45 b^2 c^2+80 a b c d+28 a^2 d^2\right ) x^{12}+16 c^5 d^9 \left (55 b^2 c^2+77 a b c d+21 a^2 d^2\right ) x^{13}+26 c^4 d^{10} \left (22 b^2 c^2+24 a b c d+5 a^2 d^2\right ) x^{14}+\frac {56}{15} c^3 d^{11} \left (78 b^2 c^2+65 a b c d+10 a^2 d^2\right ) x^{15}+\frac {5}{4} c^2 d^{12} \left (91 b^2 c^2+56 a b c d+6 a^2 d^2\right ) x^{16}+\frac {16}{17} c d^{13} \left (35 b^2 c^2+15 a b c d+a^2 d^2\right ) x^{17}+\frac {1}{18} d^{14} \left (120 b^2 c^2+32 a b c d+a^2 d^2\right ) x^{18}+\frac {2}{19} b d^{15} (8 b c+a d) x^{19}+\frac {1}{20} b^2 d^{16} x^{20} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(621\) vs.
\(2(90)=180\).
time = 0.06, size = 622, normalized size = 6.35 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 617 vs.
\(2 (90) = 180\).
time = 0.34, size = 617, normalized size = 6.30 \begin {gather*} \frac {1}{20} \, b^{2} d^{16} x^{20} + \frac {1}{2} \, a^{2} c^{16} x^{2} + \frac {2}{19} \, {\left (8 \, b^{2} c d^{15} + a b d^{16}\right )} x^{19} + \frac {1}{18} \, {\left (120 \, b^{2} c^{2} d^{14} + 32 \, a b c d^{15} + a^{2} d^{16}\right )} x^{18} + \frac {16}{17} \, {\left (35 \, b^{2} c^{3} d^{13} + 15 \, a b c^{2} d^{14} + a^{2} c d^{15}\right )} x^{17} + \frac {5}{4} \, {\left (91 \, b^{2} c^{4} d^{12} + 56 \, a b c^{3} d^{13} + 6 \, a^{2} c^{2} d^{14}\right )} x^{16} + \frac {56}{15} \, {\left (78 \, b^{2} c^{5} d^{11} + 65 \, a b c^{4} d^{12} + 10 \, a^{2} c^{3} d^{13}\right )} x^{15} + 26 \, {\left (22 \, b^{2} c^{6} d^{10} + 24 \, a b c^{5} d^{11} + 5 \, a^{2} c^{4} d^{12}\right )} x^{14} + 16 \, {\left (55 \, b^{2} c^{7} d^{9} + 77 \, a b c^{6} d^{10} + 21 \, a^{2} c^{5} d^{11}\right )} x^{13} + \frac {143}{6} \, {\left (45 \, b^{2} c^{8} d^{8} + 80 \, a b c^{7} d^{9} + 28 \, a^{2} c^{6} d^{10}\right )} x^{12} + 260 \, {\left (4 \, b^{2} c^{9} d^{7} + 9 \, a b c^{8} d^{8} + 4 \, a^{2} c^{7} d^{9}\right )} x^{11} + \frac {143}{5} \, {\left (28 \, b^{2} c^{10} d^{6} + 80 \, a b c^{9} d^{7} + 45 \, a^{2} c^{8} d^{8}\right )} x^{10} + \frac {208}{9} \, {\left (21 \, b^{2} c^{11} d^{5} + 77 \, a b c^{10} d^{6} + 55 \, a^{2} c^{9} d^{7}\right )} x^{9} + \frac {91}{2} \, {\left (5 \, b^{2} c^{12} d^{4} + 24 \, a b c^{11} d^{5} + 22 \, a^{2} c^{10} d^{6}\right )} x^{8} + 8 \, {\left (10 \, b^{2} c^{13} d^{3} + 65 \, a b c^{12} d^{4} + 78 \, a^{2} c^{11} d^{5}\right )} x^{7} + \frac {10}{3} \, {\left (6 \, b^{2} c^{14} d^{2} + 56 \, a b c^{13} d^{3} + 91 \, a^{2} c^{12} d^{4}\right )} x^{6} + \frac {16}{5} \, {\left (b^{2} c^{15} d + 15 \, a b c^{14} d^{2} + 35 \, a^{2} c^{13} d^{3}\right )} x^{5} + \frac {1}{4} \, {\left (b^{2} c^{16} + 32 \, a b c^{15} d + 120 \, a^{2} c^{14} d^{2}\right )} x^{4} + \frac {2}{3} \, {\left (a b c^{16} + 8 \, a^{2} c^{15} d\right )} x^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 617 vs.
\(2 (90) = 180\).
time = 1.00, size = 617, normalized size = 6.30 \begin {gather*} \frac {1}{20} \, b^{2} d^{16} x^{20} + \frac {1}{2} \, a^{2} c^{16} x^{2} + \frac {2}{19} \, {\left (8 \, b^{2} c d^{15} + a b d^{16}\right )} x^{19} + \frac {1}{18} \, {\left (120 \, b^{2} c^{2} d^{14} + 32 \, a b c d^{15} + a^{2} d^{16}\right )} x^{18} + \frac {16}{17} \, {\left (35 \, b^{2} c^{3} d^{13} + 15 \, a b c^{2} d^{14} + a^{2} c d^{15}\right )} x^{17} + \frac {5}{4} \, {\left (91 \, b^{2} c^{4} d^{12} + 56 \, a b c^{3} d^{13} + 6 \, a^{2} c^{2} d^{14}\right )} x^{16} + \frac {56}{15} \, {\left (78 \, b^{2} c^{5} d^{11} + 65 \, a b c^{4} d^{12} + 10 \, a^{2} c^{3} d^{13}\right )} x^{15} + 26 \, {\left (22 \, b^{2} c^{6} d^{10} + 24 \, a b c^{5} d^{11} + 5 \, a^{2} c^{4} d^{12}\right )} x^{14} + 16 \, {\left (55 \, b^{2} c^{7} d^{9} + 77 \, a b c^{6} d^{10} + 21 \, a^{2} c^{5} d^{11}\right )} x^{13} + \frac {143}{6} \, {\left (45 \, b^{2} c^{8} d^{8} + 80 \, a b c^{7} d^{9} + 28 \, a^{2} c^{6} d^{10}\right )} x^{12} + 260 \, {\left (4 \, b^{2} c^{9} d^{7} + 9 \, a b c^{8} d^{8} + 4 \, a^{2} c^{7} d^{9}\right )} x^{11} + \frac {143}{5} \, {\left (28 \, b^{2} c^{10} d^{6} + 80 \, a b c^{9} d^{7} + 45 \, a^{2} c^{8} d^{8}\right )} x^{10} + \frac {208}{9} \, {\left (21 \, b^{2} c^{11} d^{5} + 77 \, a b c^{10} d^{6} + 55 \, a^{2} c^{9} d^{7}\right )} x^{9} + \frac {91}{2} \, {\left (5 \, b^{2} c^{12} d^{4} + 24 \, a b c^{11} d^{5} + 22 \, a^{2} c^{10} d^{6}\right )} x^{8} + 8 \, {\left (10 \, b^{2} c^{13} d^{3} + 65 \, a b c^{12} d^{4} + 78 \, a^{2} c^{11} d^{5}\right )} x^{7} + \frac {10}{3} \, {\left (6 \, b^{2} c^{14} d^{2} + 56 \, a b c^{13} d^{3} + 91 \, a^{2} c^{12} d^{4}\right )} x^{6} + \frac {16}{5} \, {\left (b^{2} c^{15} d + 15 \, a b c^{14} d^{2} + 35 \, a^{2} c^{13} d^{3}\right )} x^{5} + \frac {1}{4} \, {\left (b^{2} c^{16} + 32 \, a b c^{15} d + 120 \, a^{2} c^{14} d^{2}\right )} x^{4} + \frac {2}{3} \, {\left (a b c^{16} + 8 \, a^{2} c^{15} d\right )} x^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 682 vs.
\(2 (88) = 176\).
time = 0.07, size = 682, normalized size = 6.96 \begin {gather*} \frac {a^{2} c^{16} x^{2}}{2} + \frac {b^{2} d^{16} x^{20}}{20} + x^{19} \cdot \left (\frac {2 a b d^{16}}{19} + \frac {16 b^{2} c d^{15}}{19}\right ) + x^{18} \left (\frac {a^{2} d^{16}}{18} + \frac {16 a b c d^{15}}{9} + \frac {20 b^{2} c^{2} d^{14}}{3}\right ) + x^{17} \cdot \left (\frac {16 a^{2} c d^{15}}{17} + \frac {240 a b c^{2} d^{14}}{17} + \frac {560 b^{2} c^{3} d^{13}}{17}\right ) + x^{16} \cdot \left (\frac {15 a^{2} c^{2} d^{14}}{2} + 70 a b c^{3} d^{13} + \frac {455 b^{2} c^{4} d^{12}}{4}\right ) + x^{15} \cdot \left (\frac {112 a^{2} c^{3} d^{13}}{3} + \frac {728 a b c^{4} d^{12}}{3} + \frac {1456 b^{2} c^{5} d^{11}}{5}\right ) + x^{14} \cdot \left (130 a^{2} c^{4} d^{12} + 624 a b c^{5} d^{11} + 572 b^{2} c^{6} d^{10}\right ) + x^{13} \cdot \left (336 a^{2} c^{5} d^{11} + 1232 a b c^{6} d^{10} + 880 b^{2} c^{7} d^{9}\right ) + x^{12} \cdot \left (\frac {2002 a^{2} c^{6} d^{10}}{3} + \frac {5720 a b c^{7} d^{9}}{3} + \frac {2145 b^{2} c^{8} d^{8}}{2}\right ) + x^{11} \cdot \left (1040 a^{2} c^{7} d^{9} + 2340 a b c^{8} d^{8} + 1040 b^{2} c^{9} d^{7}\right ) + x^{10} \cdot \left (1287 a^{2} c^{8} d^{8} + 2288 a b c^{9} d^{7} + \frac {4004 b^{2} c^{10} d^{6}}{5}\right ) + x^{9} \cdot \left (\frac {11440 a^{2} c^{9} d^{7}}{9} + \frac {16016 a b c^{10} d^{6}}{9} + \frac {1456 b^{2} c^{11} d^{5}}{3}\right ) + x^{8} \cdot \left (1001 a^{2} c^{10} d^{6} + 1092 a b c^{11} d^{5} + \frac {455 b^{2} c^{12} d^{4}}{2}\right ) + x^{7} \cdot \left (624 a^{2} c^{11} d^{5} + 520 a b c^{12} d^{4} + 80 b^{2} c^{13} d^{3}\right ) + x^{6} \cdot \left (\frac {910 a^{2} c^{12} d^{4}}{3} + \frac {560 a b c^{13} d^{3}}{3} + 20 b^{2} c^{14} d^{2}\right ) + x^{5} \cdot \left (112 a^{2} c^{13} d^{3} + 48 a b c^{14} d^{2} + \frac {16 b^{2} c^{15} d}{5}\right ) + x^{4} \cdot \left (30 a^{2} c^{14} d^{2} + 8 a b c^{15} d + \frac {b^{2} c^{16}}{4}\right ) + x^{3} \cdot \left (\frac {16 a^{2} c^{15} d}{3} + \frac {2 a b c^{16}}{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 668 vs.
\(2 (90) = 180\).
time = 1.50, size = 668, normalized size = 6.82 \begin {gather*} \frac {1}{20} \, b^{2} d^{16} x^{20} + \frac {16}{19} \, b^{2} c d^{15} x^{19} + \frac {2}{19} \, a b d^{16} x^{19} + \frac {20}{3} \, b^{2} c^{2} d^{14} x^{18} + \frac {16}{9} \, a b c d^{15} x^{18} + \frac {1}{18} \, a^{2} d^{16} x^{18} + \frac {560}{17} \, b^{2} c^{3} d^{13} x^{17} + \frac {240}{17} \, a b c^{2} d^{14} x^{17} + \frac {16}{17} \, a^{2} c d^{15} x^{17} + \frac {455}{4} \, b^{2} c^{4} d^{12} x^{16} + 70 \, a b c^{3} d^{13} x^{16} + \frac {15}{2} \, a^{2} c^{2} d^{14} x^{16} + \frac {1456}{5} \, b^{2} c^{5} d^{11} x^{15} + \frac {728}{3} \, a b c^{4} d^{12} x^{15} + \frac {112}{3} \, a^{2} c^{3} d^{13} x^{15} + 572 \, b^{2} c^{6} d^{10} x^{14} + 624 \, a b c^{5} d^{11} x^{14} + 130 \, a^{2} c^{4} d^{12} x^{14} + 880 \, b^{2} c^{7} d^{9} x^{13} + 1232 \, a b c^{6} d^{10} x^{13} + 336 \, a^{2} c^{5} d^{11} x^{13} + \frac {2145}{2} \, b^{2} c^{8} d^{8} x^{12} + \frac {5720}{3} \, a b c^{7} d^{9} x^{12} + \frac {2002}{3} \, a^{2} c^{6} d^{10} x^{12} + 1040 \, b^{2} c^{9} d^{7} x^{11} + 2340 \, a b c^{8} d^{8} x^{11} + 1040 \, a^{2} c^{7} d^{9} x^{11} + \frac {4004}{5} \, b^{2} c^{10} d^{6} x^{10} + 2288 \, a b c^{9} d^{7} x^{10} + 1287 \, a^{2} c^{8} d^{8} x^{10} + \frac {1456}{3} \, b^{2} c^{11} d^{5} x^{9} + \frac {16016}{9} \, a b c^{10} d^{6} x^{9} + \frac {11440}{9} \, a^{2} c^{9} d^{7} x^{9} + \frac {455}{2} \, b^{2} c^{12} d^{4} x^{8} + 1092 \, a b c^{11} d^{5} x^{8} + 1001 \, a^{2} c^{10} d^{6} x^{8} + 80 \, b^{2} c^{13} d^{3} x^{7} + 520 \, a b c^{12} d^{4} x^{7} + 624 \, a^{2} c^{11} d^{5} x^{7} + 20 \, b^{2} c^{14} d^{2} x^{6} + \frac {560}{3} \, a b c^{13} d^{3} x^{6} + \frac {910}{3} \, a^{2} c^{12} d^{4} x^{6} + \frac {16}{5} \, b^{2} c^{15} d x^{5} + 48 \, a b c^{14} d^{2} x^{5} + 112 \, a^{2} c^{13} d^{3} x^{5} + \frac {1}{4} \, b^{2} c^{16} x^{4} + 8 \, a b c^{15} d x^{4} + 30 \, a^{2} c^{14} d^{2} x^{4} + \frac {2}{3} \, a b c^{16} x^{3} + \frac {16}{3} \, a^{2} c^{15} d x^{3} + \frac {1}{2} \, a^{2} c^{16} x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.63, size = 557, normalized size = 5.68 \begin {gather*} x^4\,\left (30\,a^2\,c^{14}\,d^2+8\,a\,b\,c^{15}\,d+\frac {b^2\,c^{16}}{4}\right )+x^{18}\,\left (\frac {a^2\,d^{16}}{18}+\frac {16\,a\,b\,c\,d^{15}}{9}+\frac {20\,b^2\,c^2\,d^{14}}{3}\right )+\frac {a^2\,c^{16}\,x^2}{2}+\frac {b^2\,d^{16}\,x^{20}}{20}+\frac {2\,a\,c^{15}\,x^3\,\left (8\,a\,d+b\,c\right )}{3}+\frac {2\,b\,d^{15}\,x^{19}\,\left (a\,d+8\,b\,c\right )}{19}+\frac {16\,c^{13}\,d\,x^5\,\left (35\,a^2\,d^2+15\,a\,b\,c\,d+b^2\,c^2\right )}{5}+\frac {16\,c\,d^{13}\,x^{17}\,\left (a^2\,d^2+15\,a\,b\,c\,d+35\,b^2\,c^2\right )}{17}+260\,c^7\,d^7\,x^{11}\,\left (4\,a^2\,d^2+9\,a\,b\,c\,d+4\,b^2\,c^2\right )+\frac {91\,c^{10}\,d^4\,x^8\,\left (22\,a^2\,d^2+24\,a\,b\,c\,d+5\,b^2\,c^2\right )}{2}+26\,c^4\,d^{10}\,x^{14}\,\left (5\,a^2\,d^2+24\,a\,b\,c\,d+22\,b^2\,c^2\right )+\frac {10\,c^{12}\,d^2\,x^6\,\left (91\,a^2\,d^2+56\,a\,b\,c\,d+6\,b^2\,c^2\right )}{3}+8\,c^{11}\,d^3\,x^7\,\left (78\,a^2\,d^2+65\,a\,b\,c\,d+10\,b^2\,c^2\right )+\frac {208\,c^9\,d^5\,x^9\,\left (55\,a^2\,d^2+77\,a\,b\,c\,d+21\,b^2\,c^2\right )}{9}+\frac {143\,c^8\,d^6\,x^{10}\,\left (45\,a^2\,d^2+80\,a\,b\,c\,d+28\,b^2\,c^2\right )}{5}+\frac {143\,c^6\,d^8\,x^{12}\,\left (28\,a^2\,d^2+80\,a\,b\,c\,d+45\,b^2\,c^2\right )}{6}+16\,c^5\,d^9\,x^{13}\,\left (21\,a^2\,d^2+77\,a\,b\,c\,d+55\,b^2\,c^2\right )+\frac {56\,c^3\,d^{11}\,x^{15}\,\left (10\,a^2\,d^2+65\,a\,b\,c\,d+78\,b^2\,c^2\right )}{15}+\frac {5\,c^2\,d^{12}\,x^{16}\,\left (6\,a^2\,d^2+56\,a\,b\,c\,d+91\,b^2\,c^2\right )}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________